package lesson1_20.lesson11;

/**
 * 通过 extends 设置泛型上限
 *
 * @param <T>
 */

public class Message2<T extends Number> {
    private T note;

    public T getNote() {
        return note;
    }

    public void setNote(T note) {
        this.note = note;
    }

}
